'use strict';
const ReUtil = require('../reg/ReUtil');
const PatternPooL = require('../lang/PatternPool');


/**
 * @author ycx
 * @description uuid 工具类
 */
class UUIDUtil {

    /**
     * 校验是否是uuid
     * @param uuid {string} uuid 字符串
     * @return {boolean}
     */
    static isValid(uuid) {
        return ReUtil.test(PatternPooL.UUID, uuid);
    }
}

module.exports = UUIDUtil
